<%-- 
    Document   : cerrarSesion
    Created on : 13/04/2012, 09:50:08 PM
    Author     : Angel
--%>

<%@page import="java.security.MessageDigest"%>
<%@page import="java.sql.ResultSet"%>
<%@page language="Java" import="java.sql.*" %>
<jsp:useBean id="db" scope="request" class="conexion.DB" />
<%
    if(db.connect()){
        int result = db.actualizar("connected_login","0" , "login", "email_user_login = '"+session.getAttribute("usuario").toString()+"'");
        session.setAttribute("usuario",null);
        response.sendRedirect("../index.jsp");
    }
%>